from django.db import models
from Administrative_office_system.utils.BaseModel import BaseModel
# Create your models here.


class DutyTime(BaseModel):
    TYPE = (
        ('xz', '行政班'),
        ('lc', '临床班')
    )
    type = models.CharField('上班类型', max_length=10, choices=TYPE, default='xz')
    work_time = models.CharField("上班时间", max_length=50, default='')
    off_time = models.CharField("下班班时间", max_length=50, default='')
    create_people = models.ForeignKey(
        'personal_center.User',
        verbose_name="创建人",
        blank=False,
        null=False,
        on_delete=models.CASCADE)